<div class="page">
	<div class="page-header">
		<h2><?php echo __('Cursos');?>		<small><?php echo __('Cursos');?></small></h2>
		<div class="page-header-fields">
					<?php echo $this->Html->link('<i class="icon-th-list icon-white"></i> '.__('List').' '.__('Cursos'), array('action' => 'index'), array('escape' => false, 'class' => 'btn btn-primary')); ?>
					<?php echo $this->Html->link('<i class="icon-pencil icon-white"></i> '.__('Edit').' '.__('Cursos'), array('action' => 'edit', $curso['Curso']['id']), array('escape' => false, 'class' => 'btn btn-primary')); ?>
		</div>
	</div>
	<div class="page-content">
		<h2><?php  echo __('Curso');?></h2>
			<table class="table table-bordered table-striped">
			<tbody>
			<tr>
		<td><h5><?php echo __('Id'); ?></h5></td>
		<td>
			<?php echo h($curso['Curso']['id']); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<td><h5><?php echo __('Nome'); ?></h5></td>
		<td>
			<?php echo h($curso['Curso']['nome']); ?>
			&nbsp;
		</td>
	</tr>
			</tbody>
			</table>
	</div>
	<div class="page-footer"></div>
</div>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Curso'), array('action' => 'edit', $curso['Curso']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Curso'), array('action' => 'delete', $curso['Curso']['id']), null, __('Are you sure you want to delete # %s?', $curso['Curso']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Cursos'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Curso'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Alunos'), array('controller' => 'alunos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Aluno'), array('controller' => 'alunos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Alunos');?></h3>
	<?php if (!empty($curso['Aluno'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Matricula'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Telefone'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Curso Id'); ?></th>
		<th><?php echo __('Identidade'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($curso['Aluno'] as $aluno): ?>
		<tr>
			<td><?php echo $aluno['id'];?></td>
			<td><?php echo $aluno['matricula'];?></td>
			<td><?php echo $aluno['nome'];?></td>
			<td><?php echo $aluno['email'];?></td>
			<td><?php echo $aluno['telefone'];?></td>
			<td><?php echo $aluno['created'];?></td>
			<td><?php echo $aluno['modified'];?></td>
			<td><?php echo $aluno['curso_id'];?></td>
			<td><?php echo $aluno['identidade'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'alunos', 'action' => 'view', $aluno['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'alunos', 'action' => 'edit', $aluno['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'alunos', 'action' => 'delete', $aluno['id']), null, __('Are you sure you want to delete # %s?', $aluno['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Aluno'), array('controller' => 'alunos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
